# 安装：pip install pdfplumber
import pdfplumber

with pdfplumber.open("床上瑜伽运动在人工髋关节置换病人运动康复中的应用_宋云雅 - 副本.pdf") as pdf:
    text = ""
    for page in pdf.pages:
        text += page.extract_text() + "\n\n"  # 支持提取表格：page.extract_table()
    with open("data1.txt", "w", encoding="utf-8") as f:
        f.write(text)
